package com.fs.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 管理员菜单表
 */
@Data
@Accessors(chain = true)
@TableName("sys_admin_menus")
public class SysAdminMenus implements Serializable {
    private static final long serialVersionUID = -3630961981549652366L;
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String name;
    private Integer parentId;
    private String path;
    private Integer level;
    @TableField(exist = false)
    private List<SysAdminMenus> children; //不是表格固有属性

    private String permission;

    private Date created;
    private Date updated;

}
